package ar.com.personalTravellers.daos.impl;

import java.util.Collection;

import ar.com.personalTravellers.beans.Client;
import ar.com.personalTravellers.beans.ClientConsultation;
import ar.com.personalTravellers.daos.ClientConsultationDAO;

import com.angel.architecture.persistence.ids.ObjectId;
import com.angel.dao.generic.impl.GenericSpringHibernateDAO;

/**
 *
 * @author William
 */
public class ClientConsultationSpringHibernateDAO extends GenericSpringHibernateDAO<ClientConsultation, ObjectId> implements ClientConsultationDAO {

    public ClientConsultationSpringHibernateDAO() {
        super(ClientConsultation.class, ObjectId.class);
    }


    public Collection<ClientConsultation> findAllByClient(Client client) {
        return super.findAll("client", client);
    }
}